package org.example.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.order.model.entity.OrderDO;

/**
 * @author shenguangyang
 */
@Mapper
public interface OrderMapper  {
    /**
     * 创建订单
     */
    void create(OrderDO orderDO);

    /**
     * 更新订单，从0改为1
     * @param status 订单状态
     * @param userId 用户id
     */
    void update(@Param("userId") Long userId , @Param("status") Integer status);
}
